type Point = {
    x: number,
    y: number
}

function printCoord1(pt: Point) {

}
printCoord1({
    x: 100,
    y: 200
})

type ID = number | string

function printId1(id: ID) {

}
printId1(100)
printId1('hello')

type UserInputSanitizedstring = string
function sanitizedInput(str: string): UserInputSanitizedstring {
    return str.slice(0, 2)
}

let userInput = sanitizedInput('hello')
userInput = 'new Input'